package com.tbvtc.agriculturalcreditchainserver2025.dto.User;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class LoginByCaptchaDto {
    @Schema(description= "手机号")
    @NotEmpty(message = "手机号不能为空")
    @Size(min = 11,max = 11,message = "手机号长度必须为11位")
    private String phone;
    @NotEmpty(message = "验证码不为空")
    @Schema(description= "验证码")
    private String captcha;
}
